home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / SOUND_KI / HUFFMAN.H < prev    next >
Text File  |  1991-08-25  |  497b  |  30 lines

  1. /*
  2. >>    Huffmann.h            Project STORM
  3. >>
  4. >>    Copyright ⌐1990, Juri Munkki
  5. >>
  6. >>    This file contains definitions for compression routines for
  7. >>    the sound data of Project STORM.
  8. */
  9. #define    SOUNDFILE    'FSSD'
  10.  
  11. #define    QTBITS        10        /*    Should always be less than 16!    */
  12. #define    VALUES        128
  13. #define    DROPBITS    1
  14. #define    ANDMASK        0x7F
  15.  
  16. typedef    struct    treenode
  17. {
  18.     char                value;
  19.     
  20.     int                    codelen;
  21.     int                    code;
  22.  
  23.     long                freq;
  24.  
  25.     struct    treenode    *zeroptr;
  26.     struct    treenode    *oneptr;
  27.     int                    typeflag;
  28.  
  29. }    treenode;
  30.